package com.sparrow.common.mergeupdate;

import com.sparrow.common.thread.IdExecutorGroup;

import java.util.concurrent.TimeUnit;

public interface MergeUpdateBox {
    MergeUpdateScheduler getMergeUpdateScheduler(Object key);
    interface MergeUpdateScheduler {
        void tryMergeSchedule(IdExecutorGroup executorGroup, long id, String taskName, Runnable r, long delay, TimeUnit unit);
    }
}
